<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('修改管理费')"/>
    <th:block th:include="include :: datetimepicker-css"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-cost-edit" th:object="${cost}">
        <div class="col-md-12">
            <div class="form-group">
                <div class="col-sm-12">
                    <input type="checkbox" value="1" name="month">1月
                    <input type="checkbox" value="2" name="month" style="margin-left: 30px">2月
                    <input type="checkbox" value="3" name="month" style="margin-left: 30px">3月
                    <input type="checkbox" value="4" name="month" style="margin-left: 30px">4月<br/>
                    <input type="checkbox" value="5" name="month">5月
                    <input type="checkbox" value="6" name="month" style="margin-left: 30px">6月
                    <input type="checkbox" value="7" name="month" style="margin-left: 30px">7月
                    <input type="checkbox" value="8" name="month" style="margin-left: 30px">8月<br/>
                    <input type="checkbox" value="9" name="month">9月
                    <input type="checkbox" value="10" name="month" style="margin-left: 30px">10月
                    <input type="checkbox" value="11" name="month" style="margin-left: 30px">11月
                    <input type="checkbox" value="12" name="month" style="margin-left: 30px">12月
                </div>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<th:block th:include="include :: datetimepicker-js"/>
<script type="text/javascript">
    var prefix = ctx + "other/cost";
    $("#form-cost-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-cost-edit').serialize());
        }
    }

    $("input[name='costPaytime']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });
</script>
</body>
</html>